package club.gskj.gulimall.product.feign;

import club.gskj.common.to.es.SkuEsModel;
import club.gskj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @ClassName SearchFeignService
 * @Description TODO
 * @Author 康纳
 * @Date 2021-02-10
 */

@FeignClient("gulimall-search") // 指定被调用服务的名称
public interface SearchFeignService {

    /**
     * @param skuEsModels VO
     * @return club.gskj.common.utils.R
     * @author 康纳-connor
     * @creed: Talk is cheap,show me the code
     * @date 21.2.10 20:04
     * @Description 调用远程服务，保存索引信息
     */
    @PostMapping("/search/save/product")
    public R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);

}
